package io.renren.modules.app.dto.common;

import lombok.Data;

/**
 * create by znr48268 on 2018/12/13
 */
@Data
public class BoolResult {
    boolean result;
    String resulttext;

    public BoolResult(boolean result, String resulttext) {
        this.result = result;
        this.resulttext = resulttext;
    }

    public static BoolResult success() {
        return new BoolResult(true, null);
    }

    public static BoolResult fail(String reason) {
        return new BoolResult(false, reason);
    }
}
